<?php
/**
 * Created by PhpStorm.
 * User: zhan
 * Date: 2018/5/17  17:17
 */
namespace app\home\model;
use think\Model;
use traits\model\SoftDelete;

class File extends Model
{
//    protected $table = 'tp_file'; //表名与模型不相同是才为table属性赋值
    protected $field = ['id', 'file'];

    use SoftDelete;
    protected $updateTime = 'delete_time';  //定义软删除标记，记录数据的删除时间
//    protected $updateTime = 'update_time';
//    protected function initialize()
//    {
//        parent::initialize();
//    }

}